//
//  QQResult.h
//  test1
//
//  Created by gengzhangjia on 15/8/4.
//  Copyright (c) 2015年 gengzhangjia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QQCommon.h"
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterfaceObject.h>

@interface QQResult : NSObject
/**
 *  错误信息
 */
@property (nonatomic,strong) NSString *errorInfo;
/**
 *  返回操作结果码
 */
@property (nonatomic,assign) QQResultCode resultCode;

/**
 *  判断是否成功
 *
 *  @return YES成功 NO失败
 */
- (BOOL) isSuccess;

/**
 *  构造分享成功对象
 *
 *  @return 返回分享成功对象
 */
+ (instancetype) success;

/**
 *  构造分享失败对象
 *
 *  @return 返回分享失败对象
 */
+ (instancetype) generalError;

/**
 *  解析QQ结果基础数据
 *
 *  @param qqBaseResp QQ返回的请求结果
 *
 *  @return 返回自定义的结果
 */
+ (instancetype) parseData:(QQBaseResp *) qqBaseResp;

+ (instancetype) notInstallApp;

+ (instancetype) notError;

+ (instancetype) createConditionWithErrorCode:(QQResultCode) resultCode
                                   resultInfo:(NSString *) resultInfo;
@end
